package com.yipao.db.dao.order;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.goods.YipaoGoodsProduct;
import com.yipao.db.domain.YipaoGoodsProductExample;


public interface YipaoGoodsProductMapper {

    long countByExample(YipaoGoodsProductExample example);


    int deleteByExample(YipaoGoodsProductExample example);


    int deleteByPrimaryKey(Integer id);


    int insert(YipaoGoodsProduct record);


    int insertSelective(YipaoGoodsProduct record);


    YipaoGoodsProduct selectOneByExample(YipaoGoodsProductExample example);


    YipaoGoodsProduct selectOneByExampleSelective(@Param("example") YipaoGoodsProductExample example, @Param("selective") YipaoGoodsProduct.Column ... selective);


    List<YipaoGoodsProduct> selectByExampleSelective(@Param("example") YipaoGoodsProductExample example, @Param("selective") YipaoGoodsProduct.Column ... selective);


    List<YipaoGoodsProduct> selectByExample(YipaoGoodsProductExample example);


    YipaoGoodsProduct selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") YipaoGoodsProduct.Column ... selective);


    YipaoGoodsProduct selectByPrimaryKey(Integer id);


    YipaoGoodsProduct selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);


    int updateByExampleSelective(@Param("record") YipaoGoodsProduct record, @Param("example") YipaoGoodsProductExample example);


    int updateByExample(@Param("record") YipaoGoodsProduct record, @Param("example") YipaoGoodsProductExample example);


    int updateByPrimaryKeySelective(YipaoGoodsProduct record);


    int updateByPrimaryKey(YipaoGoodsProduct record);


    int logicalDeleteByExample(@Param("example") YipaoGoodsProductExample example);


    int logicalDeleteByPrimaryKey(Integer id);
}
